
TEX_FILES = objects := $(wildcard tex/*.tex)

# Ensure that fonts are embedded in the resulting PDF file
EPSTOPDF = GS_OPTIONS="-dEmbedAllFonts=true -dPDFSETTINGS=/printer" epstopdf

all: simplify.ps simplify.pdf

spellcheck:
	spell ./tex/abstract.tex 
	spell ./tex/introduction.tex
	spell ./tex/formal.tex
	spell ./tex/algorithm.tex
	spell ./tex/experiment.tex
	spell ./tex/related.tex
	spell ./tex/conclusion.tex

clean:
	rm -f simplify.pdf
	rm -f simplify.ps
	rm -f simplify.dvi
	rm -f simplify.aux
	rm -f simplify.blg
	rm -f simplify.log
	rm -f simplify.bbl

simplify.dvi: $(wildcard tex/*.tex)
	latex simplify.tex
	bibtex simplify
	latex simplify.tex
	latex simplify.tex

simplify.ps: simplify.dvi
	dvips simplify

simplify.pdf: simplify.dvi 
	pdflatex simplify

TAGS: tags
tags: 
	etags `latex-process-inputs -list simplify.tex`
